//创建分页对象
//prev  next  current  totalPage  totalNumber
var pageObj = {
  prev: '上一页',
  next: '下一页',
  current: 1, //当前页码
  totalPage: 5,
  totalNumber: 50
}
console.log(pageObj);
//修改属性值
pageObj.prev = 'prevPage';
pageObj.next = 'nextPage';
pageObj['totalPage'] = 10;
pageObj['totalNumber'] = 100;
pageObj['color'] = 'blue';
console.log(pageObj);










